package com.brisk.web.controller.test;

import com.brisk.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author PengFei Deng
 * @title: testConnController
 * @projectName RuoYi-Vue
 * @description: TODO
 * @date 2022/4/518:00
 */

@RestController
@RequestMapping("/without/news")
public class testConnController {


    @GetMapping("/testConn")
    public AjaxResult test() {
        List<String> stringList = new ArrayList<>();

        stringList.add("hello");
        stringList.add("work");
        stringList.add("error");


        return AjaxResult.success(stringList);
    }


    @GetMapping("/testConn2")
    public AjaxResult test2() {
        return AjaxResult.success("测试成功222");
    }


}
